package com.mall.model.entity.Pms;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 商品图片表
 * @author : cck
 * @date : 2025-10-10
 */
 
@Schema(name = "商品图片表",description = "")
@TableName("pms_product_img")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PmsProductImg implements Serializable{
    private static final long serialVersionUID = 1L;
    /** 主键id */
    @Schema(name = "主键id",description = "")
    @TableId
    private Long id;
    /** 商品id */
    @Schema(name = "商品id",description = "")
    private Long productId;
    /** 图片URL */
    @Schema(name = "图片URL",description = "")
    private String url;
    /** 排序 */
    @Schema(name = "排序",description = "")
    private Integer sort;
    /** 是否主图 */
    @Schema(name = "是否主图",description = "")
    private Integer isMain;
}